package com.project.bean;

/**
 * 采购详情实体类
 */
public class PurchaseInfoBean {
    /**采购详情编号*/
    private int id;
    /**采购数量*/
    private int num;
    /**采购商品*/
    private GoodsBean goods;
    /**采购订单*/
    private PurchaseOrderBean purchaseOrder;

    public PurchaseInfoBean() {
    }

    public PurchaseInfoBean(int num, int goodsId, int purchaseOrderId ) {
        this.num = num;
        this.goods = new GoodsBean();
        this.goods.setId(goodsId);
        this.purchaseOrder = new PurchaseOrderBean();
        this.purchaseOrder.setId(purchaseOrderId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    public PurchaseOrderBean getPurchaseOrder() {
        return purchaseOrder;
    }

    public void setPurchaseOrder(PurchaseOrderBean purchaseOrder) {
        this.purchaseOrder = purchaseOrder;
    }

    @Override
    public String toString() {
        return "PurchaseInfoBean{" +
                "id=" + id +
                ", num=" + num +
                ", goods=" + goods +
                ", purchaseOrder=" + purchaseOrder +
                '}';
    }
}
